package com.lagou.mvc.pojo;

import java.util.Set;

public class Access {

    private Set<String> allows;

    public Access(Set<String> allows) {
        this.allows = allows;
    }

    public boolean allow(String user) {
        return allows.contains(user);
    }
}
